//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.acorn.community.common.exception;

import org.slf4j.event.Level;

import java.io.Serializable;

public abstract class GenericException extends RuntimeException implements Serializable {
    private static final long serialVersionUID = 1L;
    public final Integer code;
    public final Level level;

    public GenericException(Integer code, String message, Level level) {
        this(code, message, (Throwable)null, level);
    }

    public GenericException(String message, Level level) {
        this(0, message, (Throwable)null, level);
    }

    public GenericException(Throwable oriEx, Level level) {
        this(0, "未知异常", oriEx, level);
    }

    public GenericException(Integer code, String message, Throwable oriEx, Level level) {
        super(message, oriEx);
        this.code = code;
        this.level = level;
    }

    public Integer getCode() {
        return this.code;
    }

    public Level getLevel() {
        return this.level;
    }

}
